//
//  Persion.m
//  OCDemo
//
//  Created by wxf on 2024/8/4.
//

#import "Persion.h"

@implementation Persion

- (id)initWithAge:(int)age{
    if(self = [super init]){
        self.age = age;
    }
    return self;
}

- (id)initWithName:(NSString *)name{
    if(self = [super init]){
        self.name = name;
    }
    return self;
}

- (id)initWithNameAndAge:(NSString *)name andAge:(int)age{
    if(self = [super init]){
        self.age = age;
        self.name = name;
    }
    return self;
}


- (void)run{
    NSLog(@"人在跑");
}


- (NSString *)description
{
    return [NSString stringWithFormat:@"age=%d sex=%d height=%d weight=%d name=%@", 
            _age,_sex,_height,_weight,self.name];
}

@end
